<template>
  <div>
  <input type="text" v-model="username">
  <input type="password" v-model="password">
  <button @click="login">登录</button>
  <button @click="reset">重置</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const username=ref('caixukun')
const password=ref('666666')
const reset=()=>{
  username.value=''
  password.value=''
}
const login=()=>{
  alert(username.value+password.value)
}
</script>

<style>

</style>